﻿using HCQ2_Model.DocModel.APIParam;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VR.Model
{
    public class SaleMoneyResult
    {
        /// <summary>
        ///  类别
        ///  1=充值
        ///  2=销售
        ///  3=分享
        /// </summary>
        public int operator_type { get; set; }
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        ///  登录名
        /// </summary>
        public string login_name { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string user_phone { get; set; }
        /// <summary>
        ///  创建人id
        /// </summary>
        public int create_id { get; set; }
        /// <summary>
        ///  创建人名
        /// </summary>
        public string create_name { get; set; }
        /// <summary>
        ///  销售人登录名
        /// </summary>
        public string sale_name { get; set; }
        /// <summary>
        ///  销售人登录名
        /// </summary>
        public string sale_phone { get; set; }
        /// <summary>
        ///  订单号
        /// </summary>
        public string ParentOrderCode { get; set; }
        /// <summary>
        ///  创建时间
        /// </summary>
        public string create_date { get; set; }
        /// <summary>
        ///  商品id
        /// </summary>
        public int file_id { get; set; }
        /// <summary>
        ///  商品名
        /// </summary>
        public string file_name { get; set; }
        /// <summary>
        ///  商品代码
        /// </summary>
        public string file_code { get; set; }
        /// <summary>
        ///  销售额
        /// </summary>
        public decimal gold_num { get; set; }
        /// <summary>
        ///  商品图片列表
        /// </summary>
        public List<PicModel> pic { get; set; }
    }
    public class PicModel
    {
        /// <summary>
        ///  0=横向；1=竖向
        /// </summary>
        public int file_type { get; set; }
        /// <summary>
        ///  地址
        /// </summary>
        public string file_url { get; set; }
    }
    public class SaleMoneyParam
    {
        /// <summary>
        ///  关键字模糊匹配：用户名、手机号
        /// </summary>
        public string keyword { get; set; }
        /// <summary>
        /// 用户代码
        /// </summary>
        public string userid { get; set; }
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  商铺id
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  状态
        /// </summary>
        public int sale_type { get; set; }       
    }
    public class FounderApply: BaseParam
    {
        /// <summary>
        ///  申请人用户名
        /// </summary>
        [Required(ErrorMessage = "apply_name：申请人用户名不能为空")]
        public string apply_name { get; set; }
        /// <summary>
        ///  申请人手机号
        /// </summary>
        public string apply_phone { get; set; }
        /// <summary>
        ///  商铺id
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  推荐人user_id
        /// </summary>
        public int ref_id { get; set; }
    }
    /// <summary>
    ///  合伙人列表
    /// </summary>
    public class FounderList
    {
        /// <summary>
        ///  主键
        /// </summary>
        public int id { get; set; }
        /// <summary>
        ///  申请人
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string user_phone { get; set; }
        /// <summary>
        ///  头像地址
        /// </summary>
        public string user_img { get; set; }
        /// <summary>
        ///  申请时间
        /// </summary>
        public string apply_date { get; set; }
        /// <summary>
        ///  目录
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  推荐人
        /// </summary>
        public string ref_name { get; set; }
        /// <summary>
        ///  申请状态
        /// </summary>
        public int apply_status { get; set; }
        /// <summary>
        /// / 审核人
        /// </summary>
        public string approve_name { get; set; }
        /// <summary>
        ///  审核时间
        /// </summary>
        public string approve_date { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        public string approve_note { get; set; }
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  用户内部编码
        /// </summary>
        public string userid { get; set; }
        /// <summary>
        ///  用户类别 0=普通用户 1=VIP用户
        /// </summary>
        public int user_type { get; set; }
        /// <summary>
        ///  几度好友 【100：表示陌生人】
        /// </summary>
        public int du_friend { get; set; }
        public int du_friend2 { get; set; }
        public int du_friend3 { get; set; }
        /// <summary>
        ///  状态 离线=0； 在线=1；
        /// </summary>
        public int dd_line { get; set; }
        /// <summary>
        ///  最新经度
        /// </summary>
        public decimal gps_x { get; set; }
        /// <summary>
        ///  最新纬度
        /// </summary>
        public decimal gps_y { get; set; }
        /// <summary>
        ///  城市名称
        /// </summary>
        public string city { get; set; }
        /// <summary>
        ///  距离我的距离 单位：米
        /// </summary>
        public int sense { get; set; }
        /// <summary>
        ///  最近定位时间
        /// </summary>
        public string LastLocationTime { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        public string user_note { get; set; }
        /// <summary>
        ///  店铺id
        /// </summary>
        public int folder_id { get; set; }
        /// <summary>
        ///  推荐人id
        /// </summary>
        public int ref_id { get; set; }
        /// <summary>
        ///  推荐人用户编码
        /// </summary>
        public string ref_userid { get; set; }
    }
    /// <summary>
    ///  合伙人
    /// </summary>
    public class PartnerList
    {
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  用户等级
        /// </summary>
        public int user_level { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        ///  登录名
        /// </summary>
        public string login_name { get; set; }
        /// <summary>
        ///  头像地址
        /// </summary>
        public string user_img { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string user_phone { get; set; }
        /// <summary>
        ///  商铺名称
        /// </summary>
        public string folder_name { get; set; }
        /// <summary>
        ///  推荐人用户名
        /// </summary>
        public string ref_name { get; set; }
        /// <summary>
        ///  申请时间
        /// </summary>
        public string apply_date { get; set; }
        /// <summary>
        ///  审核时间
        /// </summary>
        public string approve_date { get; set; }
        /// <summary>
        ///  状态
        /// </summary>
        public string apply_status { get; set; }
        /// <summary>
        ///  审核人
        /// </summary>
        public string approve_name { get; set; }
        /// <summary>
        ///  审核意见
        /// </summary>
        public string approve_note { get; set; }
    }
    /// <summary>
    ///  审核合伙人申请
    /// </summary>
    public class SaveFounderApply: BaseParam
    {
        /// <summary>
        ///  主键
        /// </summary>
        public int id { get; set; }
        /// <summary>
        ///  审核结果
        /// </summary>
        public int apply_status { get; set; }
        /// <summary>
        ///  审核意见
        /// </summary>
        public string approve_note { get; set; }
    }
}